from mod_python import util
import os
from webconfig import config

def index(req):

   content = {   
      'PORT' : int(util.FieldStorage(req).get('vnc', 1)) + 5900 
      }
   s = file(os.path.join(config.get('dirs', 'templates'), 'vnc.html')).read()
   return s % content


